package com.jpemartin.jgt;
import java.awt.Graphics;

/**
 * The base class for stuff that's visible on-screen and has a notion of
 * position that we can change.
 * 
 * @author jpmartin
 */
public abstract class VisibleObject extends java.awt.Rectangle {
    
    // x,y,width and height are inherited from Rectangle,
    // they indicate the collision box
    // (the drawing primitives may draw outside of it)
    
    /** setting this to false is a hint to the application
     to remove this object and stop calling draw() */
    public boolean _alive = true;

    /** update the position of the object and anything else that changes every turn */
    public abstract void move();
    
    /** draw us on the given Graphics * */
    public abstract void draw(Graphics g);
    
}

